using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BeaBullet : MonoBehaviour
{
    private Vector3 direction;
    public float speed=20f;
    private float timer;
    public float existTime=5f;
    // Start is called before the first frame update
    void Start()
    {
        direction = Vector3.right;
       
    }

    // Update is called once per frame
    void Update()
    {
        if (transform != null)
        {
            transform.position += direction * Time.deltaTime * speed;
        }       
    }
}
